<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<!-- 商品列表 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'productlist.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css"
	href="static/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="static/themes/icon.css">
<link rel="stylesheet" type="text/css" href="static/demo/demo.css">
<script type="text/javascript" src="static/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="static/1.9.1/jquery.easyui.min.js"></script>
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript">
    $(function() {  
        $('#mydatagrid').datagrid({  
            title : '商品列表',  
            iconCls : 'icon-ok',  
            width : 600,  
            pageSize : 10,//默认选择的分页是每页5行数据  
            pageList : [ 10, 20,30 ],//可以选择的分页集合  
            nowrap : true,//设置为true，当数据长度超出列宽时将会自动截取  
            striped : true,//设置为true将交替显示行背景。  
            collapsible : true,//显示可折叠按钮  
            toolbar:"#tb",//在添加 增添、删除、修改操作的按钮要用到这个  
            url:'product/searchProductlist',//url调用Action方法  
            loadMsg : '数据装载中......',  
            singleSelect:true,//为true时只能选择单行  
            fitColumns:true,//允许表格自动缩放，以适应父容器  
            //sortName : 'xh',//当数据表格初始化时以哪一列来排序  
            //sortOrder : 'desc',//定义排序顺序，可以是'asc'或者'desc'（正序或者倒序）。  
            remoteSort : false,  
             frozenColumns : [ [ {  
                field : 'ck',  
                checkbox : true  
            } ] ],   
            pagination : true,//分页  
            rownumbers : true//行数  
        });   
          
    }); 
</script>
</head>

<body>
	<div style="padding:5px;background:#fafafa;border:1px solid #ccc">

		<!-- 检索  -->
		<form action="textmsg/list" method="post" name="Form" id="Form">
			<div style="padding:5px;background:#fafafa;border:1px solid #ccc">
				<table>
					<tr>
						<td style="vertical-align:top;"><span>商品编码:</span> <input
							id="goodsNo" name="goodsNo" type="text" /></td>
						<td style="vertical-align:top;"><span>商品名称:</span> <input
							id="goodsName" name="goodsName" type="text" /></td>
						<td style="vertical-align:top;"><span>商品小类:</span> <input
							id="goodsType" name="goodsType" type="text" /></td>
						<td><span>发布时间从:</span> <input id="startTime"
							name="startTime" type="text" /></td>
						<td><span>到:</span> <input id="endTime" name="endTime"
							type="text" />
						</td>
						<td><a href="#" class="easyui-linkbutton"
							iconCls="icon-search">Query</a>
						</td>
					</tr>
				</table>
			</div>
			<div style="padding:5px;background:#fafafa;border:1px solid #ccc">
				<table id="mydatagrid">
					<thead>
						<tr>
							<th field="goodsId" width="15%">商品编码</th>
							<th field="name" width="20%">商品名称</th>
							<th field="typeID" width="20%" align="right">商品分类</th>
							<th field="inventory" width="15%" align="right">库存</th>
							<th field="price" width="15%">价格</th>
							<th field="status" width="15%" align="center">操作</th>
						</tr>
<!-- 						<c:forEach var="goods" items="${goodsList}"> -->
<!-- 							<tr> -->
<!-- 								<th field="itemid" width="15%">${goods.goodsId}</th> -->
<!-- 								<th field="productid" width="20%">${goods.name}</th> -->
<!-- 								<th field="listprice" width="20%" align="right">${goods.typeID}"</th> -->
<!-- 								<th field="unitcost" width="15%" align="right">${goods.inventory}</th> -->
<!-- 								<th field="attr1" width="15%">${goods.price}</th> -->
<!-- 								<th field="status" width="15%" align="center"><input -->
<!-- 									type="button" value="修改" /> <input type="button" value="下架" /> -->
<!-- 								</th> -->
<!-- 							</tr> -->
<!-- 						</c:forEach> -->
					</thead>
				</table>
			</div>
		</form>
	</div>
</body>
</html>
